<template>
  <div class="app-layout">
    <!-- 头部 -->
    <AppHeader />
    
    <!-- 主体内容区 -->
    <main class="main-content">
      <router-view />
    </main>
    
    <!-- 底部 -->
    <AppFooter />
  </div>
</template>

<script>
import { defineComponent } from 'vue'
import AppHeader from '@/components/AppHeader.vue'
import AppFooter from '@/components/AppFooter.vue'

export default defineComponent({
  name: 'AppLayout',
  components: {
    AppHeader,
    AppFooter
  }
})
</script>

<style scoped>
.app-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 20px;
  margin-top: 60px; /* 为固定头部留出空间 */
}
</style>